package util.AST.Expressao;

import util.AST.Terminal.Booleano;

public class ExpressaoBooleanaUnaria extends ExpressaoUnaria {
private Booleano Booleano;
	
	public ExpressaoBooleanaUnaria(Booleano Booleano) {
		this.Booleano = Booleano;
	}

	@Override
	public String toString(int level) {
		int nextLevel = level+5;
		StringBuffer str = new StringBuffer();
		str.append("EXBO\n");
		if ( this.Booleano != null ) {
			str.append(super.getSpaces(nextLevel)+"|-"+this.Booleano.toString(level));
		}
		return str.toString();
	}

	//get e set
	public Booleano getBooleano() {
		return Booleano;
	}

	public void setBooleano(Booleano booleano) {
		Booleano = booleano;
	}
	
	
}
